package com.example.eventbus;

import java.util.concurrent.Executor;

public class EventBus {
    private static volatile Bus defaultInstance;
    public static Bus get() {
        if (defaultInstance == null) {
            synchronized (EventBus.class) {
                if (defaultInstance == null) {
                    defaultInstance = new Bus();
                }
            }
        }
        return defaultInstance;
    }


}
